package com.castle.fortress.admin.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.cms.dto.CmsBannerDto;
import com.castle.fortress.admin.cms.entity.CmsBannerEntity;

import java.util.List;
import java.util.Map;

/**
 * cms轮播图管理表 服务类
 *
 * @author castle
 * @since 2022-02-24
 */
public interface CmsBannerService extends IService<CmsBannerEntity> {

    /**
     * 分页展示cms轮播图管理表列表
     * @param page
     * @param cmsBannerDto
     * @return
     */
    IPage<CmsBannerDto> pageCmsBanner(Page<CmsBannerDto> page, CmsBannerDto cmsBannerDto);


    /**
     * 展示cms轮播图管理表列表
     * @param cmsBannerDto
     * @return
     */
    List<CmsBannerDto> listCmsBanner(CmsBannerDto cmsBannerDto);
    /**
     * 用于cms标签
     * @param map
     * @return
     */
    List<CmsBannerDto> cmsTagListCmsBanner(Map<String, Object> map);
}
